//
//  UICollectionView+CYBaseRefreshInit.h
//  SafetyInHand
//
//  Created by admin on 2022/7/27.
//

#import <UIKit/UIKit.h>
#import "CYRefreshLoadMoreProtocol.h"

NS_ASSUME_NONNULL_BEGIN

@interface UIScrollView (CYBaseRefreshInit)
/// 初始化自带刷新的collectionView
- (void)initDefaultListViewWithDelegate:(id<CYRefreshLoadMoreProtocol>)delegate;
- (void)initDefaultListViewWithDelegate:(id<CYRefreshLoadMoreProtocol>)delegate
                             isLoadMore:(BOOL)isLoadMore;
/**
 * 设置当前table是否显示完所有的数据了, 即数据加载完毕
 * @param isLoadAll 是否加载玩更多
 */
- (void)listViewLoadAllData:(BOOL)isLoadAll;

@end

NS_ASSUME_NONNULL_END
